package com.ai.aicontact.busi.entity;
 

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

/***************
 *author: autogen
 *version: 2016-08-29 22:32:13.767
 */
@Entity
@Table(name = "EXEC_LIMIT_CFG")
public class ExecLimitCfg implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "EXEC_LIMIT_CFG";

    /**${param.comment} */
	public static final String ALIAS_LIMIT_ID = "LIMIT_ID";
    /**${param.comment} */
	public static final String ALIAS_TYPE = "TYPE";
    /**${param.comment} */
	public static final String ALIAS_TARGET_TYPE = "TARGET_TYPE";
    /**${param.comment} */
	public static final String ALIAS_TARGET_ID = "TARGET_ID";
    /**${param.comment} */
	public static final String ALIAS_LIMIT_VALUE = "LIMIT_VALUE";
    /**${param.comment} */
	public static final String ALIAS_STATE = "STATE";
    /**${param.comment} */
	public static final String ALIAS_CREATE_DATE = "CREATE_DATE";
    /**${param.comment} */
	public static final String ALIAS_DONE_DATE = "DONE_DATE";
    /**${param.comment} */
	public static final String ALIAS_DONE_CODE = "DONE_CODE";
    /**${param.comment} */
	public static final String ALIAS_REMARK = "REMARK";
    /**${param.comment} */
	public static final String ALIAS_OP_ID = "OP_ID";
	
	

 	@Id 
    @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="EXEC_LIMIT_CFG$SEQ")
	@SequenceGenerator(name="EXEC_LIMIT_CFG$SEQ",sequenceName="EXEC_LIMIT_CFG$SEQ",allocationSize=1)
	@Column(name = "LIMIT_ID", unique = true, nullable = false)
    public java.lang.Long limitId;
  
 	@Column(name = "TYPE")
    public java.lang.String type;
  
 	@Column(name = "TARGET_TYPE")
    public java.lang.String targetType;
  
 	@Column(name = "TARGET_ID")
    public java.lang.Long targetId;
  
 	@Column(name = "LIMIT_VALUE")
    public java.lang.Long limitValue;
  
 	@Column(name = "STATE")
    public java.lang.Integer state;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_DATE") 
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date createDate;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DONE_DATE") 
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date doneDate;
  
 	@Column(name = "DONE_CODE")
    public java.lang.Long doneCode;
  
 	@Column(name = "REMARK")
    public java.lang.String remark;
  
 	@Column(name = "OP_ID")
    public java.lang.String opId;
  





	public java.lang.Long getLimitId() {
		return this.limitId;
	}
	
	public void setLimitId(java.lang.Long value) {
		this.limitId = value;
	}

	public java.lang.String getType() {
		return this.type;
	}
	
	public void setType(java.lang.String value) {
		this.type = value;
	}

	public java.lang.String getTargetType() {
		return this.targetType;
	}
	
	public void setTargetType(java.lang.String value) {
		this.targetType = value;
	}

	public java.lang.Long getTargetId() {
		return this.targetId;
	}
	
	public void setTargetId(java.lang.Long value) {
		this.targetId = value;
	}

	public java.lang.Long getLimitValue() {
		return this.limitValue;
	}
	
	public void setLimitValue(java.lang.Long value) {
		this.limitValue = value;
	}

	public java.lang.Integer getState() {
		return this.state;
	}
	
	public void setState(java.lang.Integer value) {
		this.state = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.util.Date getDoneDate() {
		return this.doneDate;
	}
	
	public void setDoneDate(java.util.Date value) {
		this.doneDate = value;
	}

	public java.lang.Long getDoneCode() {
		return this.doneCode;
	}
	
	public void setDoneCode(java.lang.Long value) {
		this.doneCode = value;
	}

	public java.lang.String getRemark() {
		return this.remark;
	}
	
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}

	public java.lang.String getOpId() {
		return this.opId;
	}
	
	public void setOpId(java.lang.String value) {
		this.opId = value;
	}


	
	public ExecLimitCfg() {
	}
	
	public ExecLimitCfg(boolean qryflag) {
	    if(qryflag){
	    		this.limitId = null;
				this.type = null;
				this.targetType = null;
				this.targetId = null;
				this.limitValue = null;
				this.state = null;
				this.createDate = null;
				this.doneDate = null;
				this.doneCode = null;
				this.remark = null;
				this.opId = null;
			    }
	}


	public ExecLimitCfg(
	    java.lang.Long inLimitId,
	    java.lang.String inType,
	    java.lang.String inTargetType,
	    java.lang.Long inTargetId,
	    java.lang.Long inLimitValue,
	    java.lang.Integer inState,
	    java.util.Date inCreateDate,
	    java.util.Date inDoneDate,
	    java.lang.Long inDoneCode,
	    java.lang.String inRemark,
		java.lang.String inOpId
	 ) {
		super();
				this.limitId = inLimitId;
				this.type = inType;
				this.targetType = inTargetType;
				this.targetId = inTargetId;
				this.limitValue = inLimitValue;
				this.state = inState;
				this.createDate = inCreateDate;
				this.doneDate = inDoneDate;
				this.doneCode = inDoneCode;
				this.remark = inRemark;
				this.opId = inOpId;
			}

	@Transient
	private String targetName;






	public String getTargetName() {
		return targetName;
	}

	public void setTargetName(String targetName) {
		this.targetName = targetName;
	}


}

